Raspberry Pi Computer Architecture Essentials by Dennis Andrew K

Raspberry Pi Computer Architecture Essentials by Dennis Andrew K

Author:Dennis, Andrew K. [Dennis, Andrew K.]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2016-03-21T16:00:00+00:00


Following this, we then included the fb.h library, which gives us methods to access the frame buffer. You can read more about the library at https://www.kernel.org/doc/Documentation/fb/framebuffer.txt.

After this we then see our main()function.

Here, we defined a struct called info of the type fb_var_screeninfo. This data type is new and this is the first time we have implemented one:

struct fb_var_screeninfo info;

A struct, short for structure, is a complex data type that allows us to combine different data types (array, int, char, and so on) in a nested format within a single block of memory.

The following is an example of a struct:

struct Example { int nums[30]; char letters[26]; }



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.